package com.bluesky.light.product;

import java.util.Date;

import com.bluesky.light.category.Category;

public class Product {

	/**
	 * 產品在數據庫中唯一的識別號
	 */
	private int id;

	/**
	 * 產品名
	 */
	private String name;

	/**
	 * 產品描述
	 */
	private String descr;

	/**
	 * 產品進貨價
	 */
	private double cost;

	/**
	 * 產品賣出價
	 */
	private double price;

	/**
	 * 產品數量
	 */
	private int inven;

	/**
	 * 產品買入日期
	 */
	private Date pdate;

	/**
	 * 產品所在的類別的id
	 */
	private int categoryId;

	/**
	 * 產品所在的類別
	 */
	private Category category;

	/**
	 * @return
	 */
	public int getCategoryId() {
		return categoryId;
	}

	/**
	 * @param categoryId
	 */
	public void setCategoryId(int categoryId) {
		this.categoryId = categoryId;
	}

	/**
	 * @return
	 */
	public int getId() {
		return id;
	}

	/**
	 * @param id
	 */
	public void setId(int id) {
		this.id = id;
	}

	/**
	 * @return
	 */
	public String getName() {
		return name;
	}

	/**
	 * @param name
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * @return
	 */
	public String getDescr() {
		return descr;
	}

	/**
	 * @param descr
	 */
	public void setDescr(String descr) {
		this.descr = descr;
	}

	/**
	 * @return
	 */
	public double getCost() {
		return cost;
	}

	/**
	 * @return
	 */
	public double getPrice() {
		return price;
	}

	/**
	 * @param outprice
	 */
	public void setPrice(double price) {
		this.price = price;
	}

	/**
	 * @param inprice
	 */
	public void setCost(double cost) {
		this.cost = cost;
	}

	/**
	 * @return
	 */
	public int getInven() {
		return inven;
	}

	/**
	 * @param inven
	 */
	public void setInven(int inven) {
		this.inven = inven;
	}

	/**
	 * @return
	 */
	public Date getPdate() {
		return pdate;
	}

	/**
	 * @param pdate
	 */
	public void setPdate(Date pdate) {
		this.pdate = pdate;
	}

	/**
	 * @return
	 */
	public Category getCategory() {
		return category;
	}

	/**
	 * @param category
	 */
	public void setCategory(Category category) {
		this.category = category;
	}

}
